<style>
	.rules{display:block;width: 100%;}
	.rules .row{display:block;width:100%;}
	.rules .field{display: inline-block;}
	.row .child{width:100%;}
	#Data{}
	.title{width:500px;}
	.name{width:100px;}
	.is_menu{width:100px;}
	.is_show{width:100px;}
	.status{width:100px;}
	.opration{width:150px;}
</style>
<script type="text/html" id="ListVal">
	{$list|json_encode}
</script>
<div class="page-list-form">
	<div class="layui-btn-group">
		<a href="__APP__/{$Request.controller}/add.html" class="layui-btn layui-btn-primary"><i class="layui-icon layui-icon-add-1"></i>添加</a>
		<a href="__APP__/{$Request.controller}/del.html" class="layui-btn layui-btn-primary ajax confirm"><i class="layui-icon layui-icon-close"></i>删除</a>
		<a href="__APP__/{$Request.controller}/cache.html" class="layui-btn layui-btn-primary ajax"><i class="layui-icon layui-icon-refresh"></i>刷新菜单</a>
	</div>
	<div class="page-filter fr">
		<form class="layui-form layui-form-pane" action="__APP__/Rule/index.html" method="get">
		<div class="layui-form-item">
			
			<div class="layui-input-inline">
				<input type="text" name="keywords" lay-verify="required" placeholder="请输入关键词搜索" autocomplete="off" class="layui-input" value="{:input('keywords')}">
				<button class="layui-icon">&#xe615;</button>
			</div>
		</div>
		</form>
	</div>
	<div class="layui-form">
		{Data:list name="Rule" keywords="request" pid="request"}
		<table class="layui-table mt10" lay-even="" lay-skin="row">
			<colgroup><col width="50"></colgroup>
			<thead>
				<tr>
					<th><input type="checkbox" name="" lay-skin="primary" lay-filter="allChoose"></th>
					<th>标识</th>
					<th>角色名称</th>
					<td>分组</td>
					<th>菜单</th>
					<th>显示</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				{volist name="var.list" id="vo"}
				<tr>
					<td><input type="checkbox" name="ids[0]" value="{$vo.id}" class="layui-checkbox checkbox-ids" lay-skin="primary"></td>
					<td>{$vo.name}</td>
					<td><a href="__ACTION__?pid={$vo.id}">{$vo.title}</a></td>
					<td>{$vo.group_id|GTC='App'}</td>
					<td>{Html:Switch name="is_menu" value="$vo['is_menu']" lay-filter="switchStatus" options="是|否" href="__APP__/｛:Request()->controller()｝/attr/field/is_menu/ids/｛$vo.id｝.html"}</td>
					<td>{Html:Switch name="is_show" value="$vo['is_show']" lay-filter="switchStatus" options="显示|隐藏" href="__APP__/｛:Request()->controller()｝/attr/field/is_show/ids/｛$vo.id｝.html"}</td>
					<td>{Html:Switch name="status" value="$vo['status']" lay-filter="switchStatus" options="正常|关闭" href="__APP__/｛:Request()->controller()｝/attr/field/status/ids/｛$vo.id｝.html"}</td>
					<td>
						<div class="layui-btn-group">
							<div class="layui-btn-group">
								<a href="__APP__/{$Request.controller}/edit/id/{$vo.id}.html" class="layui-btn layui-btn-primary layui-btn-sm"><i class="layui-icon layui-icon-edit"></i></a>
								<a href="__APP__/{$Request.controller}/del/ids/{$vo.id}.html" class="layui-btn layui-btn-primary layui-btn-sm ajax"><i class="layui-icon layui-icon-close"></i></a>
							</div>
						</div>
					</td>
				</tr>
				{/volist}
			</tbody>
		</table>
		{$var.page|raw}
		{/Data:list}
	</div>
</div>